<?php
$id=$_GET['id'];
require_once "../php/config/database.php";
require_once "../php/admin/adminDb.php";
$adminDb=new AdminDb();
$data=$adminDb->querySelfNew($id);
$user=$data[0]['user'];
$sex=$data[0]['sex'];
$tel=$data[0]['tel'];
$email=$data[0]['email'];
$major=$data[0]['major'];
$hobdy=$data[0]['hobdy'];
$content=$data[0]['content'];
$time=$data[0]['addtime'];
$dat=date('Y年m月d日 H点i分',$time)
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link rel="shortcut icon" href="ico/logo.ico" type="image/x-icon" />
    <title>新生报名入口</title>
    <link rel="stylesheet" href="../static/css/bootstrap.css">
    <link rel="stylesheet" href="../static/js/layui/css/layui.css">

    <style>
        body{
            height: 100%;
            background-image:url("../static/imaegs/011.png");
            margin: auto;
        }
        #footer{
            width: 100%;
            text-align: center;
            bottom: 0;
            position: fixed;


        }
        #footer>a{
            font-size: 9px;
            color: grey;
            cursor: pointer;
            text-decoration: none;
        }

        .layui-form{
            width: 80%;
            margin:auto;
        }
        fieldset{
            text-align: center;
        }

        .layui-input-block{

            display: flex;
            flex-direction: row;
        }
        i{
            display: none;
        }
        input{
            border:hidden;
            background-color: transparent;
        }
        textarea{
            width: 100%;
            border:hidden;
            height: 150px;
            background-color: transparent;
        }
    </style>
</head>
<body>

<fieldset class="layui-elem-field layui-field-title" style="margin-top: 50px;">
    <legend><?php echo $user ?>的新生报名意向表</legend>
</fieldset>

<form class="layui-form" action="" >
    <div class="layui-form-item">
        <label class="layui-form-label">姓名：</label>
        <div class="layui-input-block">
            <input name="username"  id="username" type="text" readonly value="<?php echo $user ?>"><i id="user" class="layui-icon layui-icon-ok-circle" style="font-size: 20px; color:green;"></i>

        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">性别：</label>
        <div class="layui-input-block">
            <input name="tel" type="text" id="tel" readonly value="<?php echo $sex ?>" lay-verify="required|phone">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">电话：</label>
        <div class="layui-input-block">
            <input name="tel"  type="text" id="tel" readonly value="<?php echo $tel ?>"  autocomplete="off" lay-verify="required|phone">
        </div>

    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">邮箱：</label>
        <div class="layui-input-block">
            <input name="email" id="email"  type="email" readonly value="<?php echo $email ?>" lay-verify="email">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">专业：</label>
        <div class="layui-input-block">
            <input name="major" id="major"  type="text" readonly value="<?php echo $major ?>" lay-verify="class">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">爱好：</label>
        <div class="layui-input-block">
            <input name="hobdy" id="hobdy"  type="text"  value="<?php echo $hobdy ?>" lay-verify="hobdy">
        </div>
    </div>

    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">简历：</label>
        <div class="layui-input-block">
            <textarea name="content" id="content" ><?php echo $content ?></textarea>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">时间：</label>
        <div class="layui-input-block">
            <input name="hobdy" id="hobdy"  type="text"  value="<?php echo $dat ?>" lay-verify="hobdy">
        </div>
    </div>
</form>
<hr style="margin-top: 100px">


<blockquote id="footer" class="layui-elem-quote layui-quote-nm">
    <a>网站所有权利归网站负责人所有 &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;备案号：蜀ICP备18021117号 &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;技术支持-xianghai</a>
</blockquote>
<script src="../static/js/jquery.min.js"></script>
<script src="../static/js/layui/layui.all.js"></script>
<!---->

</body>
</html>